import { BaseListState } from '#/core'
import {
  AtlasItem,
  ModifyAtlasRequest,
  QueryAtlasRequest,
} from '@/api/premium/content/model/atlasModel'

export type AtlasListState = BaseListState<AtlasItem>
export interface DialogFormState
  extends Partial<Omit<ModifyAtlasRequest, 'tags'>> {
  tags: string[]
}
export interface DialogState {
  visible: boolean
  title: string
  type: 'edit' | 'add'
  formState: DialogFormState
}

export type QueryAtlasForm = Omit<QueryAtlasRequest, 'current' | 'size'>
